# encoding: utf-8
# @File  : 字典中取值.py
# @Author: Morpheus
# @Date  : 2025/10/24/15:13


a={
    "name":"张三",
    "age":18,
    "gender":"男",
    "hobby":{
        "read":"小说",
        "sport":["篮球","足球"]
    }
}
print(a["age"])
print(a.get("age"))
print(a["hobby"]["sport"][1])
print(a.get("hobby").get("sport")[1])